package com.qf.service;

import com.qf.model.entity.Department;
import com.qf.model.vo.DepartmentVO;
import org.springframework.web.multipart.MultipartFile;

import javax.servlet.http.HttpServletResponse;
import java.util.List;
import java.util.Map;

/**
 * (Department)表服务接口
 *
 * @author ZhiHuiJun
 * @since 2024-05-02 15:03:16
 */
public interface DepartmentService {

    /**
     * 通过ID查询单条数据
     *
     * @param id 主键
     * @return 实例对象
     */
    Department queryById(Long id);

    /**
     * 分页查询
     *
     * @return 查询结果
     */
    List<Department> queryByPage(Long pageNum);

    /**
     * 新增数据
     *
     * @param department 实例对象
     * @return 实例对象
     */
    boolean insert(Department department);

    int insertBatch(List<Department> list);

    /**
     * 修改数据
     *
     * @param department 实例对象
     * @return 实例对象
     */
    boolean update(Department department);

    /**
     * 通过主键删除数据
     *
     * @param id 主键
     * @return 是否成功
     */
    boolean deleteById(Long id);

    List<Department> selectDeptByCondition(Map<String, Object> map);

    List<Department> selectAllDept();

    void departmentExport(HttpServletResponse response);

    boolean importDepartment(MultipartFile file);

    boolean deleteBatch(List<Integer> list);

}
